package com.example.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.pojo.Rule;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.Serializable;
import java.util.Date;

/**
 * QueryRule实体类
 *
 * @email: pengyujun53@163.com
 * @author: peng_YuJun
 * @date: 2024/01/17
 * @time: 23:08
 */
@Data
public class  QueryRule{
    /**
     * 编码
     */
    private String qryCode;
    /**
     * 父编码
     */
    private String qryParent;
    /**
     * 组织名称
     */
    private String qryTitle;
    /**
     * 描述
     */
    private String qryIntro;
    /**
     * 删除标识符
     */
    private Integer qryDeleted;

    public void init(Rule rule){
        qryCode = rule.getCode();
        qryParent = rule.getParent();
        qryTitle = rule.getTitle();
        qryIntro = rule.getIntro();
        qryDeleted = rule.getDeleted();
    }
}
